<?php

namespace App\View\Components\Inputs;

use Illuminate\View\Component;

class Form extends Component
{
    public $height;
    public $offset;
    public $mode;
    public $id;

    public function __construct($height = 248, $offset = 0, $mode = 'popup')
    {
        $this->offset = $offset;
        $this->mode = $mode;
        $this->id = 'form' . uniqid();
        if ($mode == 'popup') {
            $height = 70;
        }
        $this->height = $height;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|\Closure|string
     */
    public function render()
    {
        return view('components.inputs.form');
    }
}
